import 'package:flutter/material.dart';
import 'package:flutter_basic_learning/utils/CommonWidget.dart';
import 'package:get/get.dart';

class MiddleWarePage extends StatefulWidget {
  const MiddleWarePage({super.key});

  @override
  State<MiddleWarePage> createState() => _MiddleWarePageState();
}

class _MiddleWarePageState extends State<MiddleWarePage> {
  @override
  Widget build(BuildContext context) {
    return commonScaffold('路由中间件学习页面', [
      ElevatedButton(
          onPressed: () {
            Get.toNamed('/hot',
                arguments: {"title": "我是MiddleWarePage页面传递过来的参数"});
          },
          child: commonText('跳转Hot页面'))
    ]);
  }
}
